<h1>An Error Has Occurred</h1>
<h2><?= $this->message ?></h2>

//detaljerne om fejlen skal KUN vises i development fasen
<? if ($this->env == 'development') { ?>
     <h3>Exception information:</h3>
     <p>
        <b>Message:</b> <?= $this->exception->getMessage(); ?>
    </p>

    <h3>Stack Trace:</h3>
    <pre><?= $this->exception->getTraceAsString(); ?></pre>

    <h3>Request Parameters:</h3>
    <pre><? var_dump($this->request->getParams()); ?></pre>
    
<? } else { ?>

    <p>
        An error has occurred. If this error persists, please contactthe site administrator.
    </p>

<? } ?>